package javaclass;

import org.springframework.stereotype.Service;

@Service
public class MyCaculatort {

    public int add(int a, int b) {

        int result = a+b;

        System.out.println("我是目标方法");

        return result;
    }


    public int sub(int a, int b) {
        int result = a-b;

        return result;
    }


    public int mul(int a, int b) {
        int result = a*b;

        return result;
    }


    public int div(int a, int b) {
        int result = a/b;

        return result;
    }
}
